
#ifndef _MEMBER_BVIEWER_H_
#define _MEMBER_BVIEWER_H_

#include <BPicker>
#include <BScene>
#include <BHandler>
#include <BCamera>
#include <BViewer>

#define viewer_member(viewer)	((member_BViewer*)((BViewer*)viewer)->_ptr)

namespace BWE
{
	class member_BViewer : public BObject
	{
		friend class BViewer;
	public:
		member_BViewer(BViewer* viewer);
		~member_BViewer();

		void paintHandler(BHandler* handler, BPainter& painter);

		void slotCameraChanged(BObject* object);
		void slotCameraFreshed(BObject* object);
		void slotSceneFresh(BObject* object);

		BViewer*			boss;
		BSceneHolder		scene;
		BCameraHolder		camera;
		BHandlerHolder		handler;
		BPickerHolder		picker;
	};
}

#endif